hw3.pdf: hw3.tex

%.dvi: %.tex
	latex $< && latex $<
	rm $*.log $*.aux

%.ps: %.dvi
	dvips $<

%.pdf: %.ps
	ps2pdf $<

clean:
	rm hw3.pdf
